home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / AStructMacs / Instructions < prev    next >
Encoding:
Text File  |  1992-01-29  |  2.6 KB  |  82 lines  |  [TEXT/MPS ]

  1. Instructions - The Assembly Language Structured Macro Example
  2.  
  3. Copyright Apple Computer, Inc. 1987-1990
  4. All rights reserved.
  5.  
  6.  
  7. About the Example
  8.  
  9.  
  10.     A simple Assembly language program using the Structured Macros
  11.     is included with MPW, called Sample.
  12.     
  13.     The source files for this example is in the
  14.     "Interfaces:AStructMacs:" folder.  In addition, a makefile
  15.     that contains the commands needed to build the example is
  16.     provided in the same folder.
  17.     
  18.  
  19. Building the Example
  20.  
  21.     You can easily build each of the sample programs using the Directory
  22.     and Build menus.  (See Chapter 2 of the MPW Reference.)
  23.     
  24.     Set the default directory to "AStructMacs:"
  25.  
  26.         The simplest way to do this is to select from the Directory menu
  27.         the menu item that ends in "AStructMacs:".  You can also set the
  28.         default directory by using the Directory and SetDirectory commands.
  29.         
  30.  
  31.     Build the program
  32.     
  33.         You can use any of the four Build items at the bottom of the Build
  34.         menu to build the program. Each of these menu items displays
  35.         a dialog box that asks for the name of the program
  36.         you want to build.  When this dialog box appears, type 
  37.         the name of the application to be built (sample).
  38.         
  39.         Each of the Build menu items behaves slightly differently:
  40.         
  41.             Build…  -  The program is automatically built.  The commands
  42.             used, and any error messages, are displayed in the Worksheet.
  43.             Only files that have been changed since you last built the
  44.             program are compiled, saving considerable time.
  45.     
  46.             Full Build…  -  The program is completely rebuilt, ignoring
  47.             any object files or intermediate files that may already exist
  48.             from a previous build.  The commands used, and any errors, are
  49.             displayed in the Worksheet.
  50.             
  51.             Show Build Commands…  -  The commands needed to build the program
  52.             are written to the Worksheet, but not executed.  You can then
  53.             select any or all of the commands and execute them yourself.
  54.             (To execute the commands select them and press Enter.)
  55.             
  56.             Show Full Build Commands…  -  The commands needed to completely
  57.             rebuild the program are written to the Worksheet.  This is a
  58.             convenient way to see all of the commands used in building
  59.             the program you have selected.
  60.  
  61.  
  62.    Note: For more information about building the sample programs, see
  63.    Chapter 2 of the MPW Reference.
  64.  
  65.  
  66.  
  67. Sample - A Simple Application
  68.  
  69.     Sample is an example application that demonstrates how to 
  70.     use the Structured Macros.  It also demonstrates how the 
  71.     Assembler DUMP/LOAD facility can be used with Macros.
  72.     
  73.    To build Sample, simply select the line below and press Enter.
  74.  
  75.         BuildProgram Sample ∑∑ {Worksheet}
  76.  
  77.    To execute Sample, select the line below and press Enter.
  78.  
  79.         Sample
  80.  
  81.  
  82.